﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Pro.Repository.Entites
{
    /// <summary>
    /// 商品价格
    /// </summary>
    [Table("pro_Price"), Comment("商品价格"),Index(nameof(GoodsID))]
    [Serializable]
    public class GoodsPrice : EfEntity
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        [Comment("商品ID")]
        public long GoodsID { get; set; }

        /// <summary>
        /// 商品规格
        /// </summary>
        [Comment("商品规格ID")]
        public long SizeID { get; set; }

        /// <summary>
        /// 用户等级
        /// </summary>
        [Comment("用户等级")]
        public int UserLevel { get;set; }

        /// <summary>
        /// 价格
        /// </summary>
        [Comment("价格"), Column(TypeName = "decimal(18,2)")]
        public Decimal Price { get; set; }

        /// <summary>
        /// 积分价格
        /// </summary>
        [Comment("积分价格")]
        public int IntegralPrice { get;set;}
    }
}
